package org.study.springboot.learning.observer;

/**
 * <p>Title: ConcreteObserver <p>
 * <p>Description: TODO<p>
 *
 * @Author ZhangSY
 * @Date 2021/7/11 22:51
 * @Version v1.0
 **/
public class ConcreteObserver implements Observer {

    private String observerState;

    @Override
    public void update(String state) {
        observerState = state;
        System.out.println("状态为：" + observerState);
    }
}
